<template>
  <div id="app">
    <router-view></router-view>
    <hr />
    <p>
      <router-link :to="{ name: 'home' }">首页</router-link>
      <router-link :to="{ name: 'find' }">发现</router-link>
      <router-link :to="{ name: 'mine' }">我的</router-link>
      <router-link :to="{ name: 'ajax' }">Ajax</router-link>
      <router-link :to="{ name: 'axios' }">Axios</router-link>
      <router-link :to="{ name: 'vuex' }">Vuex</router-link>
    </p>
  </div>
</template>

<style lang="scss">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

#nav {
  padding: 30px;

  a {
    font-weight: bold;
    color: #2c3e50;

    &.router-link-exact-active {
      color: #42b983;
    }
  }
}
</style>
